package com.gitee.loyo.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * T/CEC 102.3-2016
 * 6.2 查询充电信息
 * 6.2.4 返回值
 */
@Data
public class QueryEquipAuthResult implements Serializable {
    /**
     * 设备认证流水号
     */
    @JsonProperty("EquipAuthSeq")
    private String equipAuthSeq;
    /**
     * 充电设备接口编码
     */
    @JsonProperty("ConnectorID")
    private String connectorId;
    @JsonProperty("SuccStat")
    private Integer succStat;
    @JsonProperty("FailReason")
    private Integer failReason;

    public boolean succeed(){
        return succStat != null && succStat.intValue() == 0;
    }
}
